import request from '@/utils/request'

export function getGradeList(params) {
  return request({
    url: process.env.ADMIN_API + '/memberGrade/getList',
    method: 'post',
    data: params
  })
}

export function addGrade(params) {
  return request({
    url: process.env.ADMIN_API + '/memberGrade/add',
    method: 'post',
    data: params
  })
}

export function editGrade(params) {
  return request({
    url: process.env.ADMIN_API + '/memberGrade/edit',
    method: 'post',
    data: params
  })
}

export function deleteBatchGrade(params) {
  return request({
    url: process.env.ADMIN_API + '/memberGrade/deleteBatch',
    method: 'post',
    data: params
  })
}

